//
//  JJOCJSModel.h
//  DemoPro
//
//  Created by vpjacob on 2017/5/28.
//  Copyright © 2017年 vpjacob. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
#import <JavaScriptCore/JSExport.h>

@protocol JJOCJSObjectProtocol <JSExport>

- (void)viewDetail;
//- (void)nslog:(NSString *)str; //协议里面要声明调用的方法

JSExportAs(jjdong, -(void)nslog:(NSString *)goodsID);


@end

typedef void(^JJOCJSBlock)(NSString* name);

@interface JJOCJSModel : NSObject<JJOCJSObjectProtocol>
//- (void)nslog:(NSString *)str;
@property (nonatomic, copy)JJOCJSBlock myBlock;

@end
